<template>
	<view>
        <extern-inputbox label="请输入用户名:" placeholder="请输入用户名" @oncheckbox="oncheckbox" ref="mycom1"></extern-inputbox>
        <button @tap="onclicked">点击提交</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {

		},
		methods: {
            oncheckbox(ischecked){
                console.log("oncheckbox -- ischecked: ",ischecked);
            },
            onclicked(){
                let ret =  this.$refs["mycom1"].getState();
                console.log("ret: ",ret);
                
            }
		}
	}
</script>

<style>


</style>
